import React from 'react'
import ReactDOM from 'react-dom/client'
import { ConfigProvider } from 'antd'

import zhCN from 'antd/es/locale/zh_CN';
//修复日期周月英文
import moment from 'moment'; 
// import 'moment/locale/zh-cn'; 
import 'moment/dist/locale/zh-cn'
moment.locale('zh-cn');
// 样式初始化
import "reset-css"
// UI样式
import 'antd/dist/antd.css';

// 全局样式
import "@/assets/styles/global.scss"

import App from './App.jsx'

import { BrowserRouter } from "react-router-dom"

ReactDOM.createRoot(document.getElementById('root')).render(
  <React.StrictMode>
    <BrowserRouter>
      <ConfigProvider locale={zhCN}>
        <App />
      </ConfigProvider>
    </BrowserRouter>
  </React.StrictMode>,
)
